<?php
// Some global functions for lifeprice

require_once("database.php");

function user_admin(){
  /*
  $user_id = $_SESSION['user'];
  $users = query_select('
    SELECT isadmin
    FROM user
    WHERE id = ' . $user_id
  );
  $user = $users[0];
  */
  if(isset($_SESSION['admin']) and $_SESSION['admin'] == 1){
    return true;
  }
  return false;
}